@ECHO OFF

REM Clear the screen: 
cls

SET "DECODED_TRACES_FILENAME=decoded_traces"
SET "SIM_TRACES_FILENAME=sim_traces"
SET "ANALYSIS_TRACES_FILENAME=analysis_traces.txt"

SET "MPPA2SIM=mppa2sim-traces.exe"
SET "SIM2ANALYSIS=sim2analysis-traces.exe"

SET "TRACEPOINT_PROVIDER=mytps"
SET "MAIN_FUNCTION=usr_main"

REM Convert the traces into simulator traces

%MPPA2SIM% %DECODED_TRACES_FILENAME% %SIM_TRACES_FILENAME% "%TRACEPOINT_PROVIDER%"

REM Convert the traces into the analyzer format

%SIM2ANALYSIS% %SIM_TRACES_FILENAME% %ANALYSIS_TRACES_FILENAME% %MAIN_FUNCTION%